import myaxios from "../MyAxios";
import URLENV from "../BaseUrl";

let BMDURL = URLENV.BMDURL;

const complaintApi = {
  /**
   * 执行店铺投诉列表业务
   * @param {Object} params 
   */
  listComplaintByid(params) {
    return myaxios.post(BMDURL + "store/complaint", params);
  },

  /**
   * 执行投诉数量业务
   * @param {Object} params 
  */
  listComplaintNum(params) {
    return myaxios.post(BMDURL +"complaint/storenum", params);
  },

   /**
   * 执行管理投诉列表业务
   * @param {Object} params 
  */
   listComplaint(params) {
    return myaxios.post(BMDURL +"manage/complaint", params);
  },

  /**
   * 执行管理投诉列表店铺查询
   * @param {Object} params 
  */
    SelectComplaintStore(params) {
      return myaxios.post(BMDURL +"complaint-store", params);
    },

   /**
   * 执行修改管理投诉列表
   * @param {Object} params 
  */
   reviseCpmplaintType(params) {
    return myaxios.post(BMDURL +"complaint/chang-complanint", params);
  },
};



export default complaintApi;
